/**
 * @Author: 汪俊峰
 * @Date: 2020年1月2日
 * @Last Modified by:   汪俊峰
 * @Last Modified time: 2020年1月2日11:04:57
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 车系
export const getSeries = params =>
  axios.get(`${SERVER.DMSCLOUD_REPAIR}/baseData/basicData/series`, {
    params
  });
export const getEstimateOddNumbers = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/repair/extensionIn/getEstimateOddNumbers`, { params });

export const getEstimateData = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/repair/extensionIn/getEstimateData`, { params });

export const getLabourData = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/repair/extensionIn/getLabourData`, { params });

export const getPartData = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/repair/extensionIn/getPartData`, { params });

export const delEstimate = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/repair/extensionIn/delEstimate`, { params });

export const saveEstimate = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/repair/extensionIn/saveEstimate`, params);

export const getUpdateGSDSave = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/customerCare/getCallGSD/getUpdateGSDSave`, {params});
